package com.qili.service.base;

import com.qili.base.service.BaseService;
import com.qili.entity.base.BaseMilepost;
import java.util.List;

/**
 * @author zhaoyongke
 * @date 2020/10/27  基础里程碑
 * @description
 */
public interface BaseMilepostService extends BaseService<BaseMilepost,String> {
    String selectBadtCode();
//    int addType(BaseDict baseDict);
//    List<BaseStageDto> selectByStageDto(BaseStageDto baseStageDto);
    List<BaseMilepost> selectMilepost(BaseMilepost baseMilepost);
    List<BaseMilepost> selectMilepostListByStageId(String stageId,String milepostDictTypeCode);

    /**
     * 根据项目阶段id和里程编号查询是否存在
     * @param baseMilepost
     * @return  存在返回true,否则返回false
     */
    boolean ifExited(BaseMilepost baseMilepost);

    /**
     * 验证某项目里程是否可以修改
     * @param baseMilepost
     * @return
     */
    boolean checkCanEdit(BaseMilepost baseMilepost);
}
